Set options to control the visibility of environment variables in a batch file. Syntax SETLOCAL SETLOCAL EnableDelayedExpansion | DisableDelayedExpansion} ...
2012年12月4日 — The most frequent use of SETLOCAL is to turn on command extensions and allow delayed expansion of variables: SETLOCAL ENABLEEXTENSIONS ...
2023年11月12日 — Begins localization of environment changes in a batch file. Environment changes made after SETLOCAL is issued are local to the batch file.